﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace RTW.OA.Models
{
    public class DesktopObject
    {
        public int DtNum = 0;
        public string Index = string.Empty;
        public string Title = string.Empty;
        public string DataUrl = string.Empty;
        public int MsgNum = 0;
        public string Img = string.Empty;
        public string MenuValue = string.Empty;


        public string GetJsonStr()
        {
            string json = string.Format("\"dtNum\" : {0},\"index\" : \"f{1}\",\"title\" : \"{2}\",\"dataUrl\" : \"{3}\",\"msgNum\" : {4},\"img\" : \"{5}\"", this.DtNum, this.Index, this.Title, this.DataUrl, this.MsgNum, this.Img);

            return "{" + json + "}";
        }
    }
}